package com.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.dao.HotBookDao;
import com.entity.HotBook;
@Repository
public class HotBookDaoImpl extends BaseDaoImpl implements HotBookDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<HotBook> getHotBooks() {
		String hql="from HotBook";
		return this.getSession().createQuery(hql).list();
	}

}
